package com.adapter.classadpter;

/**
 * @author 薛虎
 * @date 2021/1/7 13:08
 * 适配器类
 */
public class VoltageAdpater extends Voltage220V implements IVoltage5V {
    @Override
    public int output5V() {
        //获取到220V电压
        int src = output220V();
        int dstV = src / 44; //转出5v
        return dstV;
    }
}
